<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8" />
  <title>Generate a report</title>
  <style>
    table, th, td {
      border: 1px solid black;
      border-collapse: collapse;
    }
    th, td {
      padding: 5px;
    }
    th {
      font-weight: bold;
    }
  </style>
</head>
<body>
  ## Generate a report

  <div xmlns="http://www.w3.org/1999/xhtml">This sample shows how to create a report using a selected template. The user is given a set of templates to choose from. The selected report template is then exported to a Portable Document Format (PDF) file. The templates are set to use the data included in the software development kit (SDK) installation.</div>  

```
Language:              C#, VB
Subject:               Map
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5
```

### Resources

* [ArcObjects .NET API Reference online](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm)  
* [Sample Data Download](../../releases)  
* [What's new](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#91cabc68-2271-400a-8ff9-c7fb25108546.htm)  
* [Download the ArcObjects SDK for .Net from MyEsri.com](https://my.esri.com/)  

### Usage
1. Start Visual Studio and build the solution.  
1. Start ArcMap. Click the Customize menu.  
1. Select Add-In Manager. Ensure that Custom Report Add-Ins is installed.  
1. Click Customize.  
1. Click the Commands tab. Under the Categories panel, browse to Add-In Controls.   
1. Click and drag the "Generate a report" button to ArcMap's toolbar from the Commands panel.  
1. Add the Counties layer to the table of contents (TOC) in ArcMap. The layer path is located at ArcGIS data sample location (that is, C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\Samples\data\California).  
1. Click the "Generate a report" button.  

#### See Also  
[How to register COM components](http://desktop.arcgis.com/search/?q=How%20to%20register%20COM%20components&p=0&language=en&product=arcobjects-sdk-dotnet&version=&n=15&collection=help)  
[Working with reports](http://desktop.arcgis.com/search/?q=Working%20with%20reports&p=0&language=en&product=arcobjects-sdk-dotnet&version=&n=15&collection=help)  

---------------------------------

#### Licensing  
<table><tr><th> Development licensing </th><th> Deployment licensing </th></tr>
<tr><td> ArcGIS Desktop Basic </td><td>  </td></tr>  
<tr><td> ArcGIS Desktop Standard </td><td>  </td></tr>  
<tr><td> ArcGIS Desktop Advanced </td><td>  </td></tr>  
</table>
</body>
</html>